﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;

namespace iCollect.util
{
    class TimePoint
    {
        private string label ;
        private DateTime timeData ;

        public TimePoint(DateTime dt)
        {
            this.timeData = dt;
            label = dt.ToString("HH\':\'mm", DateTimeFormatInfo.InvariantInfo);
        }

        public string timeStr
        {
            get
            {
                return label;
            }
        }

        public DateTime data
        {

            get
            {
                return timeData ;
            }
        }

        public override string ToString()
        {
            return label;
        }

    }
}
